home *** CD-ROM | disk | FTP | other *** search
/ Night Owl's Games 2 / Night Owl's Shareware (NOPV_GAMES 2) Games Disc II (Night Owl) (1994).iso / 015a / sbs25.zip / BASEBALL.DOC < prev    next >
Text File  |  1993-11-16  |  43KB  |  890 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                          STRATEGIC BASEBALL SIMULATOR
  10.                         Copyright 1988 David B. Schmidt
  11.  
  12.                                    (SBS)
  13.                                 Version 2.5
  14.                                 October 1993
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.      Target Computers:
  24.         IBM or 100% Compatible.
  25.         DOS 2.1 or later
  26.         Color monitor is best but monochrome is fine.
  27.         Hard drive and at least a 80286 recommended for large simulations
  28.  
  29.      Files included in this package:
  30.         BASEBALL.EXE   - the Strategic Baseball Simulator Version 2.5
  31.         BASEBALL.MSX   - the announcer's play-by-play and comments
  32.         BASEBALL.DOC   - the file you are reading now
  33.         BASEBALL.CFG   - the configuration file
  34.         BASEBALL.INF   - theory of operation
  35.         BASEBALL.ICO   - icon for Microsoft Windows
  36.         BASESTAT.EXE   - statistics compiler program
  37.         MANUAL.BAT     - prints this document
  38.         REGISTER.BAT   - prints registration form
  39.         REGISTER.FRM   - the registration form
  40.         FILE_ID.DIZ    - brief program description
  41.         VENDOR.DOC     - information for distributors
  42.         TEAMORDR.DOC   - where to order more teams
  43.         README.25      - last minute information
  44.         Plus:
  45.         old-timer .DAT files and sample .SCH (schedule) files
  46.  
  47.      To print this document: enter MANUAL
  48.      To print the registration form: enter REGISTER
  49.  
  50.      Page 1
  51.                                 CONTENTS
  52.                                                                  Page
  53.      Introduction/Installation..................................... 2
  54.      About Shareware............................................... 2
  55.      Disclaimer.................................................... 3
  56.  
  57.                                Overview
  58.      Manual Mode (single-game)..................................... 4
  59.      Two-Team Simulations.......................................... 4
  60.      Schedule File Simulations..................................... 4
  61.  
  62.                             Selected Topics
  63.      Selecting Teams............................................... 5
  64.      Selecting Schedule Files...................................... 5
  65.      Selecting Starting Pitchers................................... 5
  66.      Designated Hitter............................................. 5
  67.      Record-Keeping Options........................................ 6
  68.        Statistics File............................................. 6
  69.        Box Score File.............................................. 6
  70.        Score Card File............................................. 6
  71.      Selecting Starting Lineups.................................... 6
  72.      Changing Defensive Positions.................................. 7
  73.      Management Options............................................ 7
  74.        Managing in Manual Mode..................................... 7
  75.        Double-Switch............................................... 8
  76.        Lazy Man's Method........................................... 8
  77.      Understanding Schedule Files.................................. 9
  78.      Command Line Examples......................................... 9
  79.      Option Switches List..........................................10
  80.      Analyzing the Statistics - BASESTAT...........................11
  81.      Maintaining teams.............................................12
  82.      Configuration File - BASEBALL.CFG.............................13
  83.      Microsoft Windows 3.1 notes...................................13
  84.      Support.......................................................14
  85.      Acknowledgements..............................................14
  86.      Registration..................................................15
  87.  
  88.         
  89.      Pedigree:
  90.         1981 - FORTRAN for IBM VSE/ICCF mainframes
  91.         1987 - Version 1.2  Microsoft QuickBASIC 4.0
  92.         1988 - Version 1.3  Microsoft QuickBASIC 3.0
  93.         1990 - Versions 1.4 & 1.5 - a few bug fixes - flexible DH
  94.         1993 - Version 2.01/02  Microsoft BASIC 7.1 - Major revision -
  95.                new features including large simulation capability and
  96.                ability to save and compile statistics
  97.         1993 - Version 2.5  More flexibility; Capability to save or print
  98.                box scores/score cards/starbox's. Faster. Better display.
  99.  
  100.      Page 2
  101.  
  102.      INTRODUCTION
  103.  
  104.      The Strategic Baseball Simulator (SBS) is a program with two
  105.      personalities. It can be considered a game in which one plays
  106.      against another human or against the computer. It can also be
  107.      considered a simulation tool in which many games are played out
  108.      rapidly in order to discover strengths and weaknesses in a
  109.      particular line-up. This program is NOT an arcade-type game with
  110.      slick graphics. But if you are a baseball fan it is FUN and, to
  111.      some, addictive! SBS is very easy to use. It cuts through the
  112.      nonsense to get you into the action quickly.  A game can be played
  113.      manually in few minutes. But the program's strength is its ability
  114.      to simulate large numbers of games in a short time. A 162 game
  115.      schedule can be simulated in 6 minutes (on a '386 / 25 mHz) and an
  116.      entire SEASON for EVERY TEAM IN THE LEAGUE can be completed in
  117.      about 35 minutes. (Older PC's will take somewhat longer, of course,
  118.      but still perform well. A 486/25 does about 1 game/second).
  119.  
  120.      SBS works by reading in actual statistics for every player. The
  121.      program then builds a statistical model to simulate baseball. This
  122.      results is a good approximation, especially over a large number of
  123.      games. For a typical player/season of 600 at-bats, about 40% of
  124.      players will finish within 10 points of their actual average. About
  125.      75% will be within 20 points and about 95% will be within 40
  126.      points.
  127.  
  128.  
  129.      INSTALLATION
  130.  
  131.      Nothing fancy. Just make a subdirectory and copy the files.
  132.  
  133.          1] create a subdirectory:
  134.             > md \sbs
  135.  
  136.          2] log into the subdirectory you just created:
  137.             > cd \sbs
  138.  
  139.          3] copy the files into the subdirectory you just created:
  140.             i.e., put source diskette in drive A [or B], then:
  141.  
  142.             > copy a:*.*  [ or  copy b:*.* ]
  143.  
  144.      Start the program by entering "baseball" at the DOS prompt.
  145.  
  146.  
  147.      DEFINITION OF SHAREWARE
  148.  
  149.      This program is "Shareware", not "Freeware".
  150.  
  151.      Shareware distribution gives users a chance to try software before
  152.      buying it. If you try a Shareware program and continue using it,
  153.      you are expected to register. Individual programs differ on details
  154.      -- some request registration while others require it, some specify
  155.      a maximum trial period. With registration, you get anything from
  156.      the simple right to continue using the software to an updated
  157.      program with printed manual.
  158.  
  159.      Page 3
  160.  
  161.      Copyright laws apply to both Shareware and commercial software, and
  162.      the copyright holder retains all rights, with a few specific
  163.      exceptions as stated below. Shareware authors are accomplished
  164.      programmers, just like commercial authors, and the programs are of
  165.      comparable quality. (In both cases, there are good programs and bad
  166.      ones!) The main difference is in the method of distribution. The
  167.      author specifically grants the right to copy and distribute the
  168.      software, either to all and sundry or to a specific group. For
  169.      example, some authors require written permission before a
  170.      commercial disk vendor may copy their Shareware.
  171.  
  172.      Shareware is a distribution method, not a type of software. You
  173.      should find software that suits your needs and pocketbook, whether
  174.      it's commercial or Shareware. The Shareware system makes fitting
  175.      your needs easier, because you can try before you buy.
  176.  
  177.      And because the overhead is low, prices are low also. Shareware has
  178.      the ultimate money-back guarantee -- if you don't use the product,
  179.      you don't pay for it.
  180.  
  181.  
  182.      DISCLAIMER - AGREEMENT
  183.  
  184.      Users of Strategic Baseball Simulator must accept this disclaimer
  185.      of warranty: "Strategic Baseball Simulator is supplied as is.  The
  186.      author disclaims all warranties, expressed or implied, including,
  187.      without limitation, the warranties of merchantability and of
  188.      fitness for any purpose. The author assumes no liability for
  189.      damages, direct or consequential, which may result from the use
  190.      of Strategic Baseball Simulator."
  191.  
  192.      Strategic Baseball Simulator is a "shareware program" and is
  193.      provided at no charge to the user for evaluation.  Feel free to
  194.      share it with your friends, but please do not give it away altered
  195.      or as part of another system.  The essence of "user-supported"
  196.      software is to provide personal computer users with quality
  197.      software without high prices, and yet to provide incentive for
  198.      programmers to continue to develop new products. If you find this
  199.      program useful and find that you are using Strategic Baseball
  200.      Simulator and continue to use Strategic Baseball Simulator after a
  201.      reasonable trial period, you must make a registration payment of
  202.      $9.95 to the author.  The $9.95 registration fee will license one
  203.      copy for use on any one computer at any one time.  You must treat
  204.      this software just like a book.  An example is that this software
  205.      may be used by any number of people and may be freely moved from
  206.      one computer location to another, so long as there is no
  207.      possibility of it being used at one location while it's being used
  208.      at another. Just as a book cannot be read by two different persons
  209.      at the same time.
  210.  
  211.      You are encouraged to pass a copy of Strategic Baseball Simulator
  212.      along to your friends for evaluation.  Please encourage them to
  213.      register their copy if they find that they can use it.  All
  214.      registered users will receive a copy of the latest version of the
  215.      Strategic Baseball Simulator system.
  216.  
  217.  
  218.      Page 4
  219.  
  220.                        OVERVIEW AND THE OPENING MENU
  221.  
  222.      You are presented with three principle options here.
  223.  
  224.      MANUAL MODE
  225.  
  226.      Here you will select two teams. You can manage against the computer
  227.      or against a friend or you can manage both sides if you want. Or
  228.      you can tell the computer to manage both sides. "Manual Mode" puts
  229.      you in control.
  230.  
  231.      TWO-TEAM SIMULATION
  232.  
  233.      Again you will select two teams. But in this mode, the object is to
  234.      let the computer manage both sides in order to simulate as many
  235.      games as you want as quickly as possible. This is great for trying
  236.      to compare which team is really the "best" as baseball is a game
  237.      where a great number of games must be played before the statistics
  238.      can reveal the true picture. You will probably elect to save the
  239.      statistics generated by your simulation so you can later review
  240.      them. The simulation will start with the program running as fast as
  241.      it can. (Delay factor = 0). If you want to slow it down, you can do
  242.      so by popping up the Control window and changing the Delay. You can
  243.      also type "R" during the run to check the Won-Lost results and
  244.      highlight summary.
  245.  
  246.      SCHEDULE MODE
  247.  
  248.      This is similar to TWO-TEAM mode, but now the computer
  249.      automatically cranks through an entire schedule. These schedules
  250.      can be all 162 games for a given team or all the games for an
  251.      entire league. When you select the Schedule Mode, you are presented
  252.      with a list of "schedule files" to choose from. Schedule files are
  253.      nothing more than ASCII text files which list the teams to play and
  254.      how many games they are to play against each other. [V]iew one of
  255.      these files to see how they are set up. Then you can create your
  256.      own schedule files with your favorite teams using your favorite
  257.      text editor or word processor. You will doubtless want to save
  258.      statistics from your "Schedule Mode" simulations which you can
  259.      later compile with the companion program BASESTAT. The simulation
  260.      will start with the program running as fast as it can. (Delay
  261.      factor = 0). If you want to slow it down, you can do so by popping
  262.      up the Control window and changing the Delay. You can also type "R"
  263.      during the run to check the Won-Lost results and highlight summary.
  264.  
  265.      Page 5
  266.  
  267.                             SELECTED TOPICS
  268.  
  269.      SELECTING TEAMS
  270.  
  271.      All the files in your current directory with the extension of .DAT
  272.      are displayed. Just highlight the team you want by moving the arrow
  273.      keys and hit ENTER.  You may [V]iew or [E]dit these files by
  274.      highlighting them and typing V or E.  In order for the "E" to work,
  275.      SBS must find a text editor on your system. If you are running MS-DOS
  276.      5 or 6, SBS will try to use the built-in Microsoft Editor. If you
  277.      are running a version of DOS older than DOS 5.0 you will need to tell
  278.      SBS where to find your text editor. This is done by entering the
  279.      line EDITOR=[file specification] into the BASEBALL.CFG file. See
  280.      the topic CONFIGURATION FILE - BASEBALL.CFG.
  281.  
  282.  
  283.      SELECTING SCHEDULE FILES
  284.  
  285.      Just like selecting teams, except the computer displays files with
  286.      the extension .SCH. You can [V]iew or [E]dit these files, too.
  287.  
  288.  
  289.      SELECTING STARTING PITCHERS
  290.  
  291.      MANUAL MODE:
  292.      Just enter a number from 1 through 5.
  293.  
  294.      TWO-TEAM / SCHEDULE MODE:
  295.      You can go through the starting rotation sequentially, i.e. each
  296.      pitcher in turn, or let the computer pick starters at random, or
  297.      select one pitcher to start every game. I recommend that in
  298.      schedule mode you use the sequential method. In two-team mode you
  299.      may want to use the random method. That's because in two-team mode,
  300.      if both teams used the same sequential rotation, the same pitchers
  301.      would always be pitching against each other -- which might not be a
  302.      desirable effect. Of course if one team uses a 4 man rotation and
  303.      the other a 5 man rotation there's no problem.
  304.  
  305.      You select the starters in your rotation by typing "S" or "R" (for
  306.      sequential or random) followed by a number from 2 to 5. For example
  307.      S5 means a five-man sequential rotation. R3 means the computer
  308.      picks at random from the first three listed starters.
  309.  
  310.  
  311.      THE DESIGNATED HITTER RULE
  312.  
  313.      You are always given the option of whether to use the Designated
  314.      Hitter. The default is NO (even for the American League) so watch
  315.      closely on this one.  Most of the American League teams of the last
  316.      two decades will have the DH included in their .DAT files. For
  317.      other teams, the computer will pluck the first player on the
  318.      "bench" and insert him in the lineup in slot number 5 as the DH. If
  319.      you are building your own schedule files it is always a good idea
  320.      to include the /DH: switch on each line. But more about schedule
  321.      files later.
  322.  
  323.      Page 6
  324.  
  325.      RECORD-KEEPING OPTIONS
  326.  
  327.      When the "Record-Keeping Options" window appears, you have the
  328.      opportunity to save STATISTICS, save the BOX SCORE at the end of
  329.      each game, and/or save the SCORE-CARD at the end of each game.
  330.      Leave the input fields blank if you do not want to save them.
  331.      File-names should be from 1 to 8 characters long. You can keep
  332.      adding information to the end of existing files or you can erase
  333.      old files and start fresh. If you want to erase a file, type a "Y"
  334.      beside the "Erase old file" prompt.
  335.  
  336.      Don't use a "file extension" for the statistics file -- if you do
  337.      SBS will ignore it. SBS will actually generate four DOS statistics
  338.      files. A summary file with extension of .STS, a batter file with
  339.      extension .STB, a pitcher file with extension .STP, and a highlight
  340.      file with extension .STH. These statistics files are used by the
  341.      companion program, BASESTAT. THERE IS A LIMIT TO THE SIZE OF FILES
  342.      WHICH BASESTAT CAN SORT WHICH COMES OUT TO ROUGHLY 1550 GAMES.
  343.      THEREFORE DO NOT SIMULATE MORE THAN ONE LEAGUE-SEASON IN THE SAME
  344.      STATISTICS FILE. For example you can simulate the entire 1992 N.L.
  345.      schedule and save stats in a file called 92NL (972 games). And you
  346.      can simulate the 1992 A.L. schedule and save stats in a file called
  347.      92AL (1134 games). But you would be ill-advised to try to save them
  348.      both to the same file-name because that would be over 2000 games
  349.      and choke BASESTAT!
  350.  
  351.      The BOX SCORE file is just an ASCII text file dump of the box score
  352.      at the end of the game. You can view these box score files with any
  353.      word processor, text editor or file viewer.  Or, from DOS, just do
  354.                             more < filename
  355.      where "filename" is the name of your file you want to view.
  356.  
  357.      The SCORE CARD file is an ASCII text "shorthand" log of the
  358.      play-by-play, not an actual scorecard. I usually do not save the
  359.      score card file because it tends to eat up quite a bit of disk
  360.      space. You probably don't want to do this on long simulations. See
  361.      the preceding paragraph on viewing text files.
  362.  
  363.      You may print out the box score or the score card immediately at
  364.      game's end by entering LPT1 as the file name.
  365.  
  366.      Box scores for games in which outstanding performances occur may be
  367.      automatically saved in a file called STARBOX.TXT (or whatever you
  368.      wish to name it) in your current directory. See "CONFIGURATION FILE
  369.      - BASEBALL.CFG" on page 13 for more information.
  370.  
  371.  
  372.      SELECT STARTING LINEUPS
  373.  
  374.      For Manual Mode / Two-Team Simulations:
  375.      The default starting lineups are displayed for each team. You have the
  376.      opportunity to make changes in the lineup or batting order as you
  377.      see fit. The changes you make are temporary. (The team .DAT files
  378.      on disk do not change unless you edit them). You can swap players
  379.      between the starting lineup and the bench. You can change the
  380.      batting order also, as long as the game(s) has not started yet.
  381.      Swapping is done by just typing the numbers of the players you want
  382.      to switch, separated by a "-", i.e. 3-4.
  383.  
  384.      Page 7
  385.  
  386.      For Schedule File Mode:
  387.      Since schedule files usually involve many teams it was not feasible
  388.      to allow manipulation of the lineups in the "Schedule Mode".
  389.      However you can always go back and edit the .DAT files directly to
  390.      change lineups to your liking.
  391.  
  392.  
  393.      CHANGING DEFENSIVE POSITIONS
  394.  
  395.      For Manual Mode / Two-Team Simulations:
  396.      Once your starting lineup is intact, you may switch defensive
  397.      positions of the players if you like. This is done by typing the
  398.      numbers of the players you want to switch positions, separated by a
  399.      "-" (as above).
  400.  
  401.      Outfielders playing infield and vice-versa will be penalized!
  402.      Middle infielders playing at the corners will be penalized as well
  403.      as corner infielders playing in the middle. The penalty is not too
  404.      severe but you will notice an increase in the number of errors
  405.      committed by out-of-position players.
  406.  
  407.      This option is not available in "Schedule Mode". You must edit the
  408.      .DAT file directly.
  409.  
  410.  
  411.      SELECTING WHO MANAGES WHOM - OTHER "GROUND RULES"
  412.  
  413.      In the "Ground Rules" screen you decide whether the computer will
  414.      manager either, both, or none of the teams. [For teams which are
  415.      manually controlled, the player(s) use "pop-up" command windows
  416.      throughout the game that let them control their offensive or
  417.      defensive options]. You will also determine the "Delay Factor".
  418.      This determines how long you have to read the announcer's comments
  419.      which determines the speed of the simulation. Try "2" to start out
  420.      with. If this is a little too slow for you, change it to "1" later.
  421.      The last thing you are asked before the game starts is if you want
  422.      the computer to HIDE the decisions you make within the pop-up
  423.      command windows. You should only elect to HIDE if you are managing
  424.      against another human player who might "steal" your signals.
  425.  
  426.  
  427.      MANAGING IN MANUAL MODE
  428.  
  429.      If the computer is NOT managing the VISITING team, the visiting
  430.      team's command window is activated by hitting "S". This displays a
  431.      list of either offensive or defensive actions.
  432.  
  433.          W        > Scroll through your options using the "W" and "X" keys.
  434.                   > "Mark" the options (On or Off) using the "A" and "D"
  435.      A    S    D       keys (A=On  D=Off)
  436.                   > If both side are managed manually and HIDE was
  437.            X        selected, the computer WILL NOT DISPLAY the results
  438.                     of the "A" and "D" keys (on/off) in order to HIDE your
  439.                     decisions from your opponent.
  440.                   > Move the pointer to "READY/EXIT" and hit "A" when done.
  441.                     Or, if your opponent is the computer, just hit ESC.
  442.  
  443.      Page 8
  444.  
  445.      If the computer is NOT managing the HOME team, the home team
  446.      command window is activated by hitting the "5" key. (SBS attempts
  447.      to turn on your numeric-lock so you can use your numeric keypad).
  448.  
  449.           8       > Scroll through your options using the "8" and "2" keys.
  450.                   > "Mark" the options (On or Off) using the "4" and "6" keys.
  451.      4    5    6       (4=On  6=Off)
  452.                   > If both side are managed manually and HIDE was
  453.           2         selected, the computer WILL NOT DISPLAY the results
  454.                     of the "4" and "6" keys (on/off) in order to HIDE your
  455.                     decisions from your opponent.
  456.                   > Move the pointer to "READY/EXIT" and hit "4" when done.
  457.                     Or, if your opponent is the computer, just hit ESC.
  458.  
  459.      Remember, if you don't want to make a strategic move (which is most
  460.      of the time) just hit ENTER.
  461.  
  462.      Just before the game started you were asked if you wanted the
  463.      computer to HIDE the decisions you would make within the command
  464.      windows. If you elected NOT to hide, then you CAN see the results
  465.      of hitting the "on" and "off" keys. Not hiding makes it easier to
  466.      see what's going on inside your command window. Also if there is
  467.      only one team managed by a human, just hitting ESC will close your
  468.      command window. No need to move the pointer back to READY/EXIT and
  469.      hit "on".
  470.  
  471.      To quit the game, hit "Q". (You get a chance to change your mind.)
  472.      To get the current "Box Score" hit "B".
  473.      To check the "Score Card" hit "K".
  474.  
  475.      If you change your mind about which teams the computer should
  476.      manage, hit "C" and the "Control Window" appears in the middle of
  477.      the screen. You can also change the Delay Factor and turn the Sound
  478.      Effects on or off.
  479.  
  480.      All of the options in your command window are self-explanatory, but
  481.      you will need the following special instructions if you want to do
  482.      a "double-switch" maneuver.
  483.  
  484.      "DOUBLE-SWITCH" (only valid with no DH):
  485.      1) Get new pitcher from bullpen.
  486.      2) Immediately pop up the "Substitute" window and switch in a new
  487.         defensive player. THEN type "DS" while still in the Substitute
  488.         window. This will place the new pitcher in the batting slot
  489.         previously occupied by the outgoing player and the new defensive
  490.         player into the old pitcher's batting slot.
  491.  
  492.  
  493.      LAZY MAN'S METHOD  -  LETTING THE COMPUTER MANAGE BOTH SIDES
  494.      (All you do is sit back and watch the show!)
  495.  
  496.      If you pick the automatic manager for BOTH teams, you will have no
  497.      input into the game yourself...all you do is sit back and watch the
  498.      game unfold. You may hit "C" (for Control Window) to halt the
  499.      action at any time. Then you may choose to reset the "AutoManger"
  500.      for either or both teams or change the "Delay Factor". If you want
  501.      to follow the action you probably want to set the Delay at "2".
  502.  
  503.      Page 9
  504.  
  505.      If you want to play the game out as quickly as possible, set it at
  506.      "1" or even "0". With AutoManager on "Y" for both sides and a Delay
  507.      of "0" the game will be played out in a matter of a second or two.
  508.  
  509.  
  510.      UNDERSTANDING SCHEDULE FILES
  511.  
  512.      "Schedule Files" are the vehicle through which SBS knows to play
  513.      certain teams a certain number of games. The schedule file is just
  514.      a text file with a file extension of .SCH that you can build
  515.      yourself with your text-editor program or word processor. It
  516.      contains the teams and number of games they are to play and other
  517.      information if necessary. Data is entered via "switches". The order
  518.      of the switches should not matter.  For example, one such schedule
  519.      file might contain the following lines:
  520.  
  521.      /v:91mets.dat  /h:91cards.dat   /n:9
  522.      /v:91mets.dat  /h:91cubs.dat    /n:9
  523.      (etc. etc. through all the Eastern Division teams)
  524.  
  525.      /v:91mets.dat  /h:91reds.dat    /n:6  /hp:S4
  526.      /v:91mets.dat  /h:91braves.dat  /n:6
  527.      (etc. etc. through all the Western Division teams)
  528.  
  529.      The /v: means, as you probably guessed, the visiting team. And of
  530.      course the /h: means the home team.  The number following the /n:
  531.      determines the number of games. You can also use the /vp: and /hp:
  532.      switches to override the default starting pitching rotation scheme
  533.      which was discussed earlier.  But, at a minimum, each line in a
  534.      schedule file must contain the /h: /v: and /n: switches.
  535.  
  536.      If you save statistics when you run a schedule file -- and you
  537.      probably will -- please be aware that one set of statistics files
  538.      can only hold enough data for about 1550 games. So when you build
  539.      schedule files, you probably don't want to exceed 1550 games total!
  540.  
  541.      You can use these switches to override the normal starting rotation
  542.      method you pick in the program. See the example above -- with the
  543.      /hp: and /vp: switches. You can also override whatever you choose
  544.      on the DH rule with the /dh: switch. (See listing of command-line
  545.      options for more details).
  546.  
  547.  
  548.      COMMAND LINE EXAMPLES
  549.  
  550.      You may never want to start SBS with "command line" options, but
  551.      they are available. They would be useful if you intended to run SBS
  552.      from a batch file. Note that you can use the same switches from
  553.      either the command line or inside a schedule file.  Here are a few
  554.      scenarios showing the use of command line options.
  555.  
  556.      Example 1: You want to play 12 games with the 27 Yankees visiting
  557.      the 61 Yankees. You don't want the DH. You want each team to cycle
  558.      through a 4-man pitching rotation.  You want to save the results to
  559.      a statistics file named "styanks".
  560.  
  561.      >baseball /v:27yankee /h:61yankee /sp:S4 /dh:n /st:styanks /n:12
  562.  
  563.      Page 10
  564.  
  565.      The /V and /H switches load the visiting and home teams
  566.      respectively. If you leave off the file extension on the team
  567.      files, the program assumes .DAT. The /SP switch sets both teams to
  568.      use S4 -- Sequential four-man rotation. If you omit the /SP switch
  569.      the default is S5 for both teams - a five-man rotation. /DH:N
  570.      forces NO DH, although if you leave if off the default is NO DH
  571.      anyway. /ST gives the name of the statistics file you choose. (File
  572.      extensions on /ST are ignored). The statistics file "styanks" will
  573.      be created as four separate files - STYANKS.STS, STYANKS.STB,
  574.      STYANKS.STP, STYANKS.STH. /N:12 says to play 12 games.
  575.  
  576.      Example 2: Same as above only we want the 27 Yanks to use a 3-man
  577.      rotation.
  578.  
  579.      >baseball /v:27yankee /h:61yankee /vp:S3 /hp:S4 /st:styanks /n:12
  580.  
  581.      Since the pitching rotation is different for each team, we have to
  582.      use the /VP and /HP switches instead of /SP.  Notice that if we
  583.      don't want the DH we don't need to specify the /DH switch.
  584.  
  585.      Example 3: You want to simulate the entire 1991 season for the New
  586.      York Mets. A five-man rotation is OK for all teams. Save statistics
  587.      to "st91mets".
  588.  
  589.      >baseball /sch:91mets.sch  /st:st91mets  /bx:st91mets.box
  590.  
  591.      The /SCH switch specifies the name of the schedule file which must
  592.      already exist. The /ST switch will save the statistics to three DOS
  593.      files -- st91mets.sts, st91mets.stb, and st91mets.stp. All box
  594.      scores saved to "st91mets.box".
  595.  
  596.  
  597.      OPTION SWITCHES LIST
  598.  
  599.      Here is a list of all the switches that can be set from the DOS command
  600.      line or inside a "schedule" file. You may enter as many switches as you
  601.      need. Each one must be separated by a space. Each line in a schedule
  602.      file must contain, at a minimum, the /H: /V: and /N: switches.
  603.  
  604.      /P:path
  605.          If your .dat files reside in some other drive or directory
  606.          other than the one where "BASEBALL.EXE" is, you need the /P:
  607.          Example: >baseball /p:b:      (.DAT files are in drive b)
  608.                   >baseball /p:\nat91  (.DAT files in \nat91 subdirectory)
  609.      /H:team.dat
  610.      /V:team.dat
  611.      /DH:Y or N   (default is N)
  612.      /SCH:schedule file  (command line only)
  613.      /N:number of games  (default is 1)
  614.      /SP:S5-S2  or  R5-R2  or  1-5
  615.          Default Starting Pitcher Selection Method: If you are
  616.          simulating many games, there are different ways the computer
  617.          uses to pick the starting pitcher. If you do not specify the
  618.          /SP switch, program defaults to S5, sequential 5-man rotation.
  619.      /VP: (same as SP)   Override /SP for the Visiting Team entered in /V
  620.      /HP: (same as SP)   Override /SP for the Home Team entered in /H
  621.      /S:Y or N  Turns Sound Effects On or Off
  622.  
  623.      Page 11
  624.  
  625.      /C:C or M  Force Color or Monochrome display. The program should be
  626.           smart enough to figure this out without relying on this switch.
  627.      /ST:statistics file.
  628.          This file name may be 1 to 8 characters long. Do NOT use a file
  629.          extension.
  630.      /BX:box score file. File extensions OK.
  631.      /SC:score card file. File extensions OK.
  632.      /STB:StarBox file. File extensions OK.
  633.      /DEL:delay factor  0-9  How long (in seconds) you get to read the
  634.           play-by-play
  635.  
  636.  
  637.      ANALYZING THE STATISTICS - BASESTAT
  638.  
  639.      The companion stat program is called BASESTAT. BASESTAT will ask
  640.      you to enter the name of your STAT FILE. It will then summarize the
  641.      results and print them out directly or to a .PRN file on disk.
  642.  
  643.      Outputting to a .PRN file can save you some time for large
  644.      simulations. You can view this file with any number of file viewing
  645.      programs or you can load it into your word processor or text editor
  646.      if you desire. You can also send the .PRN files to your printer at
  647.      your convenience at a later time.
  648.  
  649.          - - - - - - - DOS commands you should know: - - - - - -
  650.        |                                                         |
  651.        | Viewing a file:  type "filename.ext" | more             |
  652.        |                  more < "filename.ext"                  |
  653.        | Printing a file: type "filename.ext" > LPT1             |
  654.        |                  copy "filename.ext" PRN                |
  655.        |                  print "filename.ext"                   |
  656.        |                                                         |
  657.          - - - - - - (do not type the quotations marks)  - - - -
  658.  
  659.      Simulating an entire season for one team (162 games) takes about 6
  660.      minutes on a fast 386.  The statistics files for such a run will
  661.      total around 250K -- easily fitting on a diskette.
  662.  
  663.      If you simulate a very large number of games in one stat file, you
  664.      may need a hard disk. If you simulate an entire season for an
  665.      entire league the game count goes to 972 for the National League
  666.      (pre-expansion) and 1134 for the American League. This may take a
  667.      while to run -- depending on your machine.  A 386 PC should handle
  668.      it in about 40 minutes.  The statistics for such a run will require
  669.      close to 2 megabytes of disk space. BASESTAT can sort files this
  670.      big, but it may take several minutes. NOTE! THERE IS AN UPPER LIMIT
  671.      ON THE SIZE OF STATISTICS FILES! That limit is 32,766 batter
  672.      records which corresponds roughly to 1550 games. Therefore when you
  673.      build schedule files and save statistics, do not exceed 1550 games
  674.      in a single statistics file.
  675.  
  676.      TIP: A disk-caching program helps a lot! Try a cache size of 512K if
  677.      possible. Use "write" caching if available.
  678.  
  679.      Page 12
  680.  
  681.      MAINTAINING TEAMS (or build your own teams!)
  682.  
  683.      You can change information on the team files or make up your own
  684.      teams using any text editor.  Just about any word processor will do
  685.      also, but make SURE you save the file in plain ASCII format. This
  686.      is sometimes called DOS MODE or NON-DOCUMENT MODE or some-such
  687.      thing. Make sure you follow the exact format used in the team files
  688.      supplied. Everything has to be in its own particular column, etc.
  689.      The best way is to copy one of the .DAT files you already have and
  690.      then edit the new file.
  691.  
  692.      Slots 1 thru 9 are the starting lineup and batting order. If you do
  693.      not want a DH in your default starting lineup, leave slot 9 blank
  694.      like I have in my National League files.
  695.  
  696.      Slots 10 thru 14 are for starting pitchers. Relief pitchers begin
  697.      in slot 15, although #14 can be used in relief if desired. You may
  698.      have as few as 2 or as many as 8 relief pitchers. The man in slot
  699.      15 will be your "closer" -- the guy who comes in in the late
  700.      innings to try to nail down a save. After the relief pitchers there
  701.      should be a line beginning with a "*" and then the "bench". You may
  702.      fill out the bench down to slot 25. If you have a lot of relief
  703.      pitchers in your .DAT file your bench might be a little thin.
  704.  
  705.      If you do not include a DH in the default starting lineup, and then
  706.      choose to use a DH in the program, the first player on the bench
  707.      will be inserted as the DH into the number five spot.
  708.  
  709.      PLATOONING:
  710.      "Platooning" is when a manager starts a right-handed hitting player
  711.      against left-handed pitching, but benches him in favor of a left-
  712.      handed hitting player against right-handed pitching. SBS supports
  713.      this in the following manner by direct editing of the .DAT files.
  714.      Type an "A" in column 5 of the .DAT file next to the player in the
  715.      starting lineup. Then type an "A" in column 5 next to the player on
  716.      the bench that you want to platoon with him. Neither player should
  717.      be a switch hitter. If there are more players you want to platoon
  718.      at the same time match them up with a "B" and so on. When SBS
  719.      displays the starting lineup it will swap the marked players
  720.      depending on the "handed-ness" of the opposing pitcher. SBS will
  721.      NOT do "platoon-swapping" after pitching changes while a game is
  722.      in progress. If column 5 of a player's record is marked, SBS
  723.      assumes that his statistics were generated primarily against
  724.      opposite-handed pitchers, so his average is not "boosted", as would
  725.      be the case of straight lefties vs righties, and vice-versa.
  726.  
  727.      A REMINDER:
  728.      If you are adding your own team files, you must use the file extension
  729.      ".DAT" for your data file. You may have up to 300 teams in a given
  730.      subdirectory. If your team .DAT files are in a different subdirectory
  731.      than the BASEBALL.EXE, you must start the program with the path switch.
  732.      For example, if your .DAT files are in a subdirectory called \bbal you
  733.      would start the game with: baseball /p:\bbal
  734.      
  735.      Trust me, entering lots of teams from scratch can be a pain. So
  736.      don't do last year's teams yourself. Register instead!
  737.  
  738.      Page 13
  739.  
  740.      CONFIGURATION FILE - BASEBALL.CFG
  741.  
  742.      This is an important file, although SBS will run without it. The
  743.      configuration file contains information about each league for a
  744.      given year. This enables SBS to reduce any "bias" of one era versus
  745.      another. These stats are used to compute "League Average" values
  746.      for a given league/year -- see discussion in BASEBALL.INF. If there
  747.      is no .CFG file, SBS uses some "hard-coded" values which reflect
  748.      recent-era data. If the team you select is from a year or league
  749.      that is not covered in the .CFG file, then SBS uses the default
  750.      values contained in the file -- the DEF A and DEF N lines. If you
  751.      choose to edit this file, keep the columns lined up correctly!
  752.  
  753.      You may also control the standards which determine when a game's
  754.      box score is saved to your "STARBOX" file. This is done in the
  755.      HILITE line. For example, if you want to save the box score if
  756.      someone gets 5 or more hits you would enter "5" under Hits. If you
  757.      want to save box scores of pitching gems of 3-hitters or better
  758.      enter a "3" under the PHit column.
  759.  
  760.      Here are some sample lines from the .CFG file for reference and
  761.      the columns in which these values must fall:
  762.  
  763.      columns    11-16  18-23  25-30  32-37  39-44  46-51
  764.  
  765.      *        |  Hits|    HR|   RBI|    SB|  PHit|    SO|
  766.      HILITE   |     5|     3|     7|     3|     2|    13|
  767.      *
  768.      *Yr L    |  Inn |  Hits|    2B|    3B|    HR|    BB|
  769.      *        |      |      |      |      |      |      |
  770.      1902A    |  9732| 10451|  1679|   569|   258|  2815|
  771.  
  772.      As mentioned earlier, this file may also contain the "path" to your
  773.      text-editor. For example, suppose you use the popular editor Q.EXE
  774.      which you might have in your \UTIL directory. Just enter the line:
  775.  
  776.      EDITOR=\util\q       (no spaces, please)
  777.  
  778.      on any line in the .CFG file ("EDITOR=" must begin in column 1) and
  779.      SBS should be able to find your editor. There has been a problem
  780.      reported by a user on a Lantastic network where for some reason SBS
  781.      would not "shell" to the built-in Microsoft Editor. Specifying
  782.      another editor in the .CFG worked.
  783.  
  784.  
  785.      MICROSOFT WINDOWS
  786.  
  787.      If you have a '386 or better, it can be very nice to run a long SBS
  788.      simulation in the "background" under Windows. If you are familiar
  789.      with Windows you can create a .PIF file that allows the application
  790.      to run in the "background" while you run other programs. I used the
  791.      default .PIF included with Windows, checked the "Background" box,
  792.      and saved it as BASEBALL.PIF. I am using Windows 3.1. The only
  793.      problem I had was sometimes the program would "freeze" when I tried
  794.      switching back and forth between running in a window and running
  795.      full-screen (alt+enter). The problem may be fixed now, but I would
  796.      recommend staying in "full-screen" mode anyway. Included in this
  797.      package is BASEBALL.ICO, an icon for SBS to use with Windows.
  798.  
  799.      Page 14
  800.  
  801.      SUPPORT
  802.  
  803.      The author loves feedback from users!  Write to the address below or
  804.      contact me via CompuServe.  Feel free to distribute the program in
  805.      its original format.  But if you are a registered user, please do
  806.      not distribute the additional team .DAT files you received as part
  807.      of your registration.
  808.  
  809.      Speaking of registration.... For $9.95, I will supply a diskette
  810.      with data files for all American League and National League teams
  811.      containing the PREVIOUS year's statistics. Also included will be
  812.      the latest version of the program.  The previous year's data
  813.      diskettes should be available each year around April 1. For
  814.      example, if it is now May 1994, the rosters and data for the 1993
  815.      teams would be available. They will reflect the rosters at the end
  816.      of the 1993 season and will not include trades and/or new players
  817.      which have arrived since the end of that season. (You will have to
  818.      use your text editor or word processor and update the files
  819.      yourself if you want to have current rosters which reflect the
  820.      latest trades). If you register AFTER the regular season but before
  821.      the time when the .DAT files become available -- i.e. October thru
  822.      March -- then I will send you the latest .DAT files when they
  823.      become available under a separate mailing.
  824.  
  825.      Here's the address:
  826.  
  827.      D.B. Schmidt                 If this doesn't match the address on
  828.      R.R. 4 - Box 142             the opening screen, suspect tampering!
  829.      St. Joseph, Missouri 64507
  830.  
  831.      CompuServe: 76474,3116
  832.  
  833.  
  834.      ACKNOWLEDGEMENTS
  835.  
  836.      Microsoft's BASIC development team.
  837.  
  838.      Thomas Hanlin III for his excellent ADVBAS routines. Highly recommended.
  839.      ADVBAS is a library of routines that is available by shareware. SBS
  840.      makes good use of a number of these routines.
  841.  
  842.      Ethan Winer for his superb book "BASIC Techniques and Utilities". A
  843.      modified version of his file sorting program is used in BASESTAT.
  844.  
  845.      Thomas Riggs of Longview, Texas who researched many teams for
  846.      early versions of this program.
  847.  
  848.      Special thanks to Robert Logbeck of Topeka, Kansas for researching
  849.      many old-timer teams, building schedule files for championship
  850.      playoffs for each decade, researching all that data in the .CFG
  851.      file and finding lots of program glitches which I failed to detect.
  852.      Check out his file TEAMORDR.DOC for information on ordering
  853.      specific teams from the past!
  854.  
  855. Page 15
  856.  
  857.      Registration form:
  858.  
  859.      D.B. Schmidt
  860.      R.R. 4 - Box 142
  861.      St. Joseph, Missouri 64507
  862.  
  863.      Name   : _________________________________________   3.5"___ 5.25"___
  864.  
  865.      Address: _________________________________________
  866.  
  867.      City   : _____________________________ State: ____
  868.  
  869.      Zip    : _______________
  870.  
  871.      Do you want a 5.25" or 3.5" diskette? ____________
  872.      [Please select 3.5" if at all possible!]
  873.  
  874.      If you absolutely require a 5.25", is High Density (1.2 meg) OK? ___
  875.  
  876.      Just to satisfy my curiosity, please describe your computer system:
  877.  
  878.      ____________________________________________________________
  879.  
  880.      Where did you get your copy of Strategic Baseball Simulator?
  881.  
  882.      ------------------------------------------------------------
  883.  
  884.      Enclosed is a check or money order for $9.95.
  885.  
  886.      If you are already registered and just need the latest .DAT files
  887.      that I have from the previous season, please enclose $7.00. See the
  888.      file TEAMORDR.DOC for information about any other teams you may
  889.      want.
  890.